#include "convertFromRgbToHsv8.h"

Result test8() {
	IplImage* img = cvLoadImage("C:\\Documents and Settings\\snirbo\\Desktop\\convertFromRgbToHsv\\schiffer.bmp");
	int* new_data = ConvertFromRgbToHsv(img);
	if (new_data == 0) {
		return printTestResult(8, FAIL);
	} else {
		CompareParams comp[3]={V,S,H};
		return printTestResult(8, compareResultOfHsv(new_data, comp, 3));
	}
}

#ifdef __TEST8__
int main(int argc, char **argv) {
	if (!test1() || !test2() || !test3() || !test4() || !test5() ||!test6() ||!test7() ||!test8()) {
		cout << "TOTAL TEST FAILED!\n";
		getchar();
		exit(1);
	}
	cout << "TOTAL TEST SUCCEEDED\n";
	getchar();
	return 0;
}
#endif